#include "UserContext.h"

thread_local UserContext::userInfo UserContext::m_user;

UserContext::userInfo UserContext::getCurrentUser() {
    return m_user;
}


void UserContext::setCurrentUser(int id , const std::string& name , const std::string& role )
{
    m_user.id = id;
    m_user.name = name;
    m_user.role = role;
}
